﻿/// <reference path="../../Char.js" />

String.prototype.TrimEnd = function TrimEnd()
{
	var i;
	for (i = this.length - 1; i > -1; --i)
	{
		if (!Char.IsWhiteSpace(this.charAt(i)))
			break;
	}
	return this.substr(0, i + 1);
}
